package net.hzlj.platform.enterprise.socket;

import java.io.Serializable;

/**
 * 指令
 * Created by Jason Zhang on 2017/06/30.
 */
public class Command implements Serializable {

    private int type;

    private String cid;

    private String message;

    public Command() {

    }

    public Command(String message,String cid,int type) {
        this.type = type;
        this.cid = cid;
        this.message = message;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "Command{" +
                "type=" + type +
                ", cid='" + cid + '\'' +
                ", message='" + message + '\'' +
                '}';
    }
}
